package com.jrx.anytxn.feign.param.service;

import com.jrx.anytxn.feign.param.request.HandleInvestorLimitReq;
import com.jrx.anytxn.feign.param.response.HandleInvestorLimitRes;
import com.jrx.anytxn.feign.param.request.PartnerLimitAdjustmentReq;
import com.jrx.anytxn.feign.param.response.PartnerLimitAdjustmentRes;
import com.jrx.anytxn.i18n.response.TxnRespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * AnyTxn参数模块feign
 *
 * @author liuyang
 * @date 2020-06-09
 */
@FeignClient(name ="anytxn-cf-param-api")
public interface IAnyTxnParamService {

    /**
     * 出资方额度使用
     *
     * @param req 出资方额度使用请求
     * @return TxnRespResult<HandleInvestorLimitRes> 出资方额度使用响应
     * @author liuyang
     * @date 2020-06-09
     */
    @PostMapping(value = "/api/param/investor/handleInvestorLimit",consumes = "application/json;charset=UTF-8")
    TxnRespResult<HandleInvestorLimitRes> handleInvestorLimit(HandleInvestorLimitReq req);

    /**
     * 合作方额度调整
     * @param req 合作方额度调整请求实体
     * @return TxnRespResult<PartnerLimitAdjustmentRes> 合作方额度调整返回实体
     */
    @PostMapping(value = "/api/param/partner/partnerLimitAdjustment",consumes = "application/json;charset=UTF-8")
    TxnRespResult<PartnerLimitAdjustmentRes> partnerLimitAdjustment(PartnerLimitAdjustmentReq req);
}
